package com.imm.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 地址管理
 * @author HJy
 */
@Data
@TableName("address_book")
public class AddressBook implements Serializable {

    @TableField("id")
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("consignee")
    private String consignee;

    @TableField("sex")
    private Short sex;

    @TableField("phone")
    private String phone;

    @TableField("province_code")
    private String provinceCode;

    @TableField("province_name")
    private String provinceName;

    @TableField("city_code")
    private String cityCode;

    @TableField("city_name")
    private String cityName;

    @TableField("district_code")
    private String districtCode;

    @TableField("district_name")
    private String districtName;

    @TableField("detail")
    private String detail;

    @TableField("label")
    private String label;

    @TableField("is_default")
    private Short isDefault;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(value = "update_user",fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @TableField("is_deleted")
    private Integer isDeleted;
}



